<?php
/*
 * Created on 2013-9-18
 *
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 * 
 * list all file in domain
 */

	$domain = $_REQUEST['domain'];
	$s = new SaeStorage();

	$num = 0;
	while($list = $s->getList($domain,NULL,100,$num))
	{
		foreach($list as $file)
		{
			$url = $s->getUrl($domain,$file);
			echo "<a href='".$url."'>".$url."</a><br>";
			$num++;
		}
	}
	echo "<br><p>共有".$num."个文件</p><br>";

?>
